//
// CTravCameraScene.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------

package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CMatrix;
import org.ryzom.nel.misc.CVector;

public class CTravCameraScene extends CTraversal {
  private long swigCPtr;

  public CTravCameraScene(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CTravCameraScene_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CTravCameraScene obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CTravCameraScene(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public void setLeft(float value) {
    nel3dJNI.CTravCameraScene_Left_set(swigCPtr, this, value);
  }

  public float getLeft() {
    return nel3dJNI.CTravCameraScene_Left_get(swigCPtr, this);
  }

  public void setRight(float value) {
    nel3dJNI.CTravCameraScene_Right_set(swigCPtr, this, value);
  }

  public float getRight() {
    return nel3dJNI.CTravCameraScene_Right_get(swigCPtr, this);
  }

  public void setBottom(float value) {
    nel3dJNI.CTravCameraScene_Bottom_set(swigCPtr, this, value);
  }

  public float getBottom() {
    return nel3dJNI.CTravCameraScene_Bottom_get(swigCPtr, this);
  }

  public void setTop(float value) {
    nel3dJNI.CTravCameraScene_Top_set(swigCPtr, this, value);
  }

  public float getTop() {
    return nel3dJNI.CTravCameraScene_Top_get(swigCPtr, this);
  }

  public void setNear(float value) {
    nel3dJNI.CTravCameraScene_Near_set(swigCPtr, this, value);
  }

  public float getNear() {
    return nel3dJNI.CTravCameraScene_Near_get(swigCPtr, this);
  }

  public void setFar(float value) {
    nel3dJNI.CTravCameraScene_Far_set(swigCPtr, this, value);
  }

  public float getFar() {
    return nel3dJNI.CTravCameraScene_Far_get(swigCPtr, this);
  }

  public void setPerspective(boolean value) {
    nel3dJNI.CTravCameraScene_Perspective_set(swigCPtr, this, value);
  }

  public boolean getPerspective() {
    return nel3dJNI.CTravCameraScene_Perspective_get(swigCPtr, this);
  }

  public void setCamMatrix(CMatrix value) {
    nel3dJNI.CTravCameraScene_CamMatrix_set(swigCPtr, this, CMatrix.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CMatrix getCamMatrix() {
    long cPtr = nel3dJNI.CTravCameraScene_CamMatrix_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NLMISC__CMatrix(cPtr, false);
  }

  public void setViewMatrix(SWIGTYPE_p_NLMISC__CMatrix value) {
    nel3dJNI.CTravCameraScene_ViewMatrix_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CMatrix.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CMatrix getViewMatrix() {
    long cPtr = nel3dJNI.CTravCameraScene_ViewMatrix_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NLMISC__CMatrix(cPtr, false);
  }

  public void setCamPos(CVector value) {
    nel3dJNI.CTravCameraScene_CamPos_set(swigCPtr, this, CVector.getCPtr(value), value);
  }

  public CVector getCamPos() {
    long cPtr = nel3dJNI.CTravCameraScene_CamPos_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CVector(cPtr, false);
  }

  public void setCamLook(CVector value) {
    nel3dJNI.CTravCameraScene_CamLook_set(swigCPtr, this, CVector.getCPtr(value), value);
  }

  public CVector getCamLook() {
    long cPtr = nel3dJNI.CTravCameraScene_CamLook_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CVector(cPtr, false);
  }

  public void setFrustum(float left, float right, float bottom, float top, float znear, float zfar, boolean perspective) {
    nel3dJNI.CTravCameraScene_setFrustum__SWIG_0(swigCPtr, this, left, right, bottom, top, znear, zfar, perspective);
  }

  public void setFrustum(float left, float right, float bottom, float top, float znear, float zfar) {
    nel3dJNI.CTravCameraScene_setFrustum__SWIG_1(swigCPtr, this, left, right, bottom, top, znear, zfar);
  }

  public void setFrustum(float width, float height, float znear, float zfar, boolean perspective) {
    nel3dJNI.CTravCameraScene_setFrustum__SWIG_2(swigCPtr, this, width, height, znear, zfar, perspective);
  }

  public void setFrustum(float width, float height, float znear, float zfar) {
    nel3dJNI.CTravCameraScene_setFrustum__SWIG_3(swigCPtr, this, width, height, znear, zfar);
  }

  public void setCamMatrix(SWIGTYPE_p_NLMISC__CMatrix camMatrix) {
    nel3dJNI.CTravCameraScene_setCamMatrix(swigCPtr, this, SWIGTYPE_p_NLMISC__CMatrix.getCPtr(camMatrix));
  }

  public CTravCameraScene() {
    this(nel3dJNI.new_CTravCameraScene(), true);
  }

}
